package com.smg.community.model;

import cn.org.rapid_framework.util.DateConvertUtils;
import java.io.Serializable;
import java.util.Date;
import javacommon.base.BaseEntity;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class SmgTopicReply extends BaseEntity
  implements Serializable
{
  private static final long serialVersionUID = 1702993486L;
  public static final String TABLE_ALIAS = "SmgTopicReply";
  public static final String ALIAS_REPLY_ID = "replyId";
  public static final String ALIAS_FK_TOPIC_ID = "fkTopicId";
  public static final String ALIAS_REPLY_CONT_BEFOR_FILTER = "过滤前的内容";
  public static final String ALIAS_REPLY_CONT_AFTER_FILTER = "过滤后的内容";
  public static final String ALIAS_IS_REPLY_CONTAIN_KEYWORD = "回复内容是否包含关键字";
  public static final String ALIAS_REPLY_CONTAIN_KEYWORDS = "回复包含的关键字";
  public static final String ALIAS_REPLY_MEMBER_ID = "回复的用户ID";
  public static final String ALIAS_REPLY_MEMBER_NAME = "回复的用户名";
  public static final String ALIAS_REPLY_MEMBER_HEAD = "回复的用户头像";
  public static final String ALIAS_REPLY_DATE = "回复日期";
  public static final String ALIAS_IS_VALID = "是否有效";
  public static final String ALIAS_OPERATE_LOG = "操作日志";
  public static final String ALIAS_FK_GROUP_ID = "fkGroupId";
  public static final String ALIAS_GROUP_NAME = "groupName";
  public static final String ALIAS_FK_CATE_ID = "fkCateId";
  public static final String ALIAS_CATE_NAME = "cateName";
  public static final String ALIAS_CITY_NO = "cityNo";
  public static final String ALIAS_CITY_NAME = "cityName";
  public static final String FORMAT_REPLY_DATE = "yyyy-MM-dd";
  private Integer replyId;
  private Integer fkTopicId;
  private String replyContBeforFilter;
  private String replyContAfterFilter;
  private Integer isReplyContainKeyword;
  private String replyContainKeywords;
  private Integer replyMemberId;
  private String replyMemberName;
  private String replyMemberHead;
  private Date replyDate;
  private Integer isValid;
  private String operateLog;
  private Integer fkGroupId;
  private String groupName;
  private Integer fkCateId;
  private String cateName;
  private Integer cityNo;
  private String cityName;
  private int isAutoReply;

  public int getIsAutoReply()
  {
    return this.isAutoReply;
  }

  public void setIsAutoReply(int isAutoReply) {
    this.isAutoReply = isAutoReply;
  }

  public SmgTopicReply( )
  {
  }

  public void setReplyId(Integer value) {
    this.replyId = value;
  }

  public Integer getReplyId() {
    return this.replyId; }

  public void setFkTopicId(Integer value) {
    this.fkTopicId = value;
  }

  public Integer getFkTopicId() {
    return this.fkTopicId; }

  public void setReplyContBeforFilter(String value) {
    this.replyContBeforFilter = value;
  }

  public String getReplyContBeforFilter() {
    return this.replyContBeforFilter; }

  public void setReplyContAfterFilter(String value) {
    this.replyContAfterFilter = value;
  }

  public String getReplyContAfterFilter() {
    return this.replyContAfterFilter; }

  public void setIsReplyContainKeyword(Integer value) {
    this.isReplyContainKeyword = value;
  }

  public Integer getIsReplyContainKeyword() {
    return this.isReplyContainKeyword; }

  public void setReplyContainKeywords(String value) {
    this.replyContainKeywords = value;
  }

  public String getReplyContainKeywords() {
    return this.replyContainKeywords; }

  public void setReplyMemberId(Integer value) {
    this.replyMemberId = value;
  }

  public Integer getReplyMemberId() {
    return this.replyMemberId; }

  public void setReplyMemberName(String value) {
    this.replyMemberName = value;
  }

  public String getReplyMemberName() {
    return this.replyMemberName; }

  public void setReplyMemberHead(String value) {
    this.replyMemberHead = value;
  }

  public String getReplyMemberHead() {
    return this.replyMemberHead; }

  public String getReplyDateString() {
    return DateConvertUtils.format(getReplyDate(), "yyyy-MM-dd"); }

  public void setReplyDateString(String value) {
    setReplyDate(DateConvertUtils.parse(value, "yyyy-MM-dd", Date.class));
  }

  public void setReplyDate(Date value) {
    this.replyDate = value;
  }

  public Date getReplyDate() {
    return this.replyDate; }

  public void setIsValid(Integer value) {
    this.isValid = value;
  }

  public Integer getIsValid() {
    return this.isValid; }

  public void setOperateLog(String value) {
    this.operateLog = value;
  }

  public String getOperateLog() {
    return this.operateLog; }

  public void setFkGroupId(Integer value) {
    this.fkGroupId = value;
  }

  public Integer getFkGroupId() {
    return this.fkGroupId; }

  public void setGroupName(String value) {
    this.groupName = value;
  }

  public String getGroupName() {
    return this.groupName; }

  public void setFkCateId(Integer value) {
    this.fkCateId = value;
  }

  public Integer getFkCateId() {
    return this.fkCateId; }

  public void setCateName(String value) {
    this.cateName = value;
  }

  public String getCateName() {
    return this.cateName; }

  public void setCityNo(Integer value) {
    this.cityNo = value;
  }

  public Integer getCityNo() {
    return this.cityNo; }

  public void setCityName(String value) {
    this.cityName = value;
  }

  public String getCityName() {
    return this.cityName;
  }

  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append
      ("ReplyId", getReplyId()).append
      ("FkTopicId", getFkTopicId()).append
      ("ReplyContBeforFilter", getReplyContBeforFilter()).append
      ("ReplyContAfterFilter", getReplyContAfterFilter()).append
      ("IsReplyContainKeyword", getIsReplyContainKeyword()).append
      ("ReplyContainKeywords", getReplyContainKeywords()).append
      ("ReplyMemberId", getReplyMemberId()).append
      ("ReplyMemberName", getReplyMemberName()).append
      ("ReplyMemberHead", getReplyMemberHead()).append
      ("ReplyDate", getReplyDate()).append
      ("IsValid", getIsValid()).append
      ("OperateLog", getOperateLog()).append
      ("FkGroupId", getFkGroupId()).append
      ("GroupName", getGroupName()).append
      ("FkCateId", getFkCateId()).append
      ("CateName", getCateName()).append
      ("CityNo", getCityNo()).append
      ("CityName", getCityName()).toString
      ();
  }

  public int hashCode() {
    return new HashCodeBuilder().append
      (getReplyId()).toHashCode
      ();
  }

  public boolean equals(Object obj) {
    if (!(obj instanceof SmgTopicReply)) return false;
    if (this == obj) return true;
    SmgTopicReply other = (SmgTopicReply)obj;
    return new EqualsBuilder().append
      (getReplyId(), other.getReplyId()).isEquals
      ();
  }
}